'''
# Coding:utf-8
# Project: online-exam
# Author: rtf
# Time: 2022-07-25 09:07:53
# FileName: user_info.py
# Software: PyCharm
'''


'''
# Coding:utf-8
# Project: online-exam
# Author: rtf
# Time: 2022-07-25 09:07:53
# FileName: user_info.py
# Software: PyCharm
'''

from trump.utils import get_user


def get_uesr_info(request):
    user = get_user(request)
    user_id = user.get("id")
    role_code = user.get("role")

    return user_id, role_code


